package com.earl.eatbao.dao.eatbao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.earl.eatbao.commons.dao.BaseRepsitoty;
import com.earl.eatbao.domain.eatbao.BusinessApply;

public interface BusinessApplyDao extends BaseRepsitoty<BusinessApply,Long>{

    /**
     * 根据状态查询申请商家列表
     * @param status
     * @return
     */
    @Query("select b from BusinessApply b where b.status = :status")
    List<BusinessApply> findBusinessWithStatus(@Param("status") int status);

    List<BusinessApply> findByStatus(int status);
}
